package net.wwang.blog.controller.global;

import net.wwang.blog.commons.global.ResponseResult;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author WangWei
 * @date 2020/8/14
 */
@RestController
public class ErrorPageController {
    @RequestMapping("/404")
    public ResponseResult result404(){
        return ResponseResult.ERROR_404();
    }
    @RequestMapping("/403")
    public ResponseResult result403(){
        return ResponseResult.ERROR_403();
    }
    @RequestMapping("/405")
    public ResponseResult result405(){
        return ResponseResult.ERROR_405();
    }
    @RequestMapping("/504")
    public ResponseResult result504(){
        return ResponseResult.ERROR_504();
    }
    @RequestMapping("/505")
    public ResponseResult result505(){
        return ResponseResult.ERROR_505();
    }
    @RequestMapping("/500")
    public ResponseResult result500(){
        return ResponseResult.ERROR_500();
    }
}
